package com.dianping.cat.configuration.server.entity;

import com.dianping.cat.configuration.server.BaseEntity;
import com.dianping.cat.configuration.server.IVisitor;



public class HarfsConfig
  extends BaseEntity<HarfsConfig>
{
  private String m_id;
/*  12 */   private String m_maxSize = "128M";


  private String m_serverUri;


  private String m_baseDir;



/*  22 */   public HarfsConfig(String id) { this.m_id = id; }




/*  27 */   public void accept(IVisitor visitor) { visitor.visitHarfs(this); }



  public boolean equals(Object obj) {
    if (obj instanceof HarfsConfig) {
/*  33 */       HarfsConfig _o = (HarfsConfig)obj;

/*  35 */       if (!equals(getId(), _o.getId())) {
        return false;
      }

/*  39 */       return true;
    }

/*  42 */     return false;
  }


/*  46 */   public String getBaseDir() { return this.m_baseDir; }



/*  50 */   public String getId() { return this.m_id; }



/*  54 */   public String getMaxSize() { return this.m_maxSize; }



/*  58 */   public String getServerUri() { return this.m_serverUri; }

/*     */




  public void mergeAttributes(HarfsConfig other) {
/*  72 */     assertAttributeEquals(other, "harfs", "id", this.m_id, other.getId());

/*  74 */     if (other.getMaxSize() != null) {
/*  75 */       this.m_maxSize = other.getMaxSize();
    }

    if (other.getServerUri() != null) {
/*  79 */       this.m_serverUri = other.getServerUri();
    }

/*  82 */     if (other.getBaseDir() != null) {
/*  83 */       this.m_baseDir = other.getBaseDir();
    }
  }

  public HarfsConfig setBaseDir(String baseDir) {
/*  88 */     this.m_baseDir = baseDir;
/*  89 */     return this;
  }

  public HarfsConfig setId(String id) {
/*  93 */     this.m_id = id;
/*  94 */     return this;
  }

  public HarfsConfig setMaxSize(String maxSize) {
/*  98 */     this.m_maxSize = maxSize;
/*  99 */     return this;
  }

  public HarfsConfig setServerUri(String serverUri) {
/* 103 */     this.m_serverUri = serverUri;
/* 104 */     return this;
  }

  public HarfsConfig() {}
}


/* Location:              /Users/hanfei/Documents/apache-tomcat-9.0.24/webapps/cat/WEB-INF/lib/cat-core-3.0.0.jar!/com/dianping/cat/configuration/server/entity/HarfsConfig.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       1.0.7
 */